using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._TerrainDataset
{
    /// <summary>
    /// <para>Replace Terrain Points</para>
    /// <para>Replaces points referenced by a terrain dataset with points from a specified feature class.</para>
    /// <para>将 terrain 数据集引用的点替换为指定要素类中的点。</para>
    /// </summary>    
    [DisplayName("Replace Terrain Points")]
    public class ReplaceTerrainPoints : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ReplaceTerrainPoints()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_terrain">
        /// <para>Input Terrain</para>
        /// <para>The terrain dataset to process.</para>
        /// <para>要处理的 terrain 数据集。</para>
        /// </param>
        /// <param name="_terrain_feature_class">
        /// <para>Input Terrain Data Source</para>
        /// <para>The name of the terrain point feature class that will have some or all of its points replaced.</para>
        /// <para>将替换部分或全部点的 terrain 点要素类的名称。</para>
        /// </param>
        /// <param name="_in_point_features">
        /// <para>Input Points</para>
        /// <para>The point or multipoint features that will replace the terrain point features.</para>
        /// <para>将替换地形点要素的点要素或多点要素。</para>
        /// </param>
        public ReplaceTerrainPoints(object _in_terrain, object _terrain_feature_class, object _in_point_features)
        {
            this._in_terrain = _in_terrain;
            this._terrain_feature_class = _terrain_feature_class;
            this._in_point_features = _in_point_features;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Replace Terrain Points";

        public override string CallName => "3d.ReplaceTerrainPoints";

        public override List<string> AcceptEnvironments => ["autoCommit", "workspace"];

        public override object[] ParameterInfo => [_in_terrain, _terrain_feature_class, _in_point_features, _polygon_features_or_extent, _derived_out_terrain];

        /// <summary>
        /// <para>Input Terrain</para>
        /// <para>The terrain dataset to process.</para>
        /// <para>要处理的 terrain 数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Terrain")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_terrain { get; set; }


        /// <summary>
        /// <para>Input Terrain Data Source</para>
        /// <para>The name of the terrain point feature class that will have some or all of its points replaced.</para>
        /// <para>将替换部分或全部点的 terrain 点要素类的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Terrain Data Source")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _terrain_feature_class { get; set; }


        /// <summary>
        /// <para>Input Points</para>
        /// <para>The point or multipoint features that will replace the terrain point features.</para>
        /// <para>将替换地形点要素的点要素或多点要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Points")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_point_features { get; set; }


        /// <summary>
        /// <para>Area of Interest</para>
        /// <para>An optional area of interest can be used to define the extent of the area in which the terrain points would be replaced.</para>
        /// <para>可选感兴趣区域可用于定义将替换地形点的区域范围。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Area of Interest")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _polygon_features_or_extent { get; set; } = null;


        /// <summary>
        /// <para>Updated Input Terrain</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Terrain")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _derived_out_terrain { get; set; }


        public ReplaceTerrainPoints SetEnv(int? autoCommit = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, workspace: workspace);
            return this;
        }

    }

}